package com.tiamo.traders.servicefront.ServiceFrontImpl;

import com.tiamo.traders.entity.Business;
import com.tiamo.traders.mapperfront.FrontBusinessMapper;
import com.tiamo.traders.servicefront.FrontBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FrontBusinessServiceImpl implements FrontBusinessService {
    @Autowired
    FrontBusinessMapper businessMapper;

    @Override
    public List<Business> businessFindById(Business business) {
        return businessMapper.businessFindById(business);
    }

    @Override
    public int getCount(Business business) {
        return businessMapper.getCount(business);
    }

    @Override
    public List<Business> findAll(Business business) {
        return businessMapper.findAll(business);
    }
}
